package com.atguigu.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author dlophin2021414@163.com
 * @date 2021年12月01日 11:27
 */
@Data
public class SkuEsModel {
    private Long skuId;
    private Long spuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    //销量
    private Long saleCount;
    //是否有库存
    private Boolean hasStock;
    private Long hotScore;
    private Long brandId;
    //品牌ID
    private Long catalogId;
    //品牌分类ID
    private String brandName;
    private String brandImg;
    private String catalogName;
    private List<Attrs> attrs;
    @Data
    public static class Attrs {    //第三方能够对其进行序列化、反序列化
        //数据模型
        private Long attrId;

        private String attrName;

        private String attrValue;

    }


}
